﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLQTPM_Nhom6.BUS;


namespace QLQTPM_Nhom6
{
    public partial class frmQLTinhThanh : Form
    {
        public frmQLTinhThanh()
        {
            InitializeComponent();
        }

        private void frmQLTinhThanh_Load(object sender, EventArgs e)
        {
            // Example load Data;
            DataTable dt = new DataTable();
            dt = TinhThanhBUS.ShowTT();
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                Object[] t = { dt.Rows[i].ItemArray[0].ToString(), dt.Rows[i].ItemArray[1].ToString(),dt.Rows[i].ItemArray[2].ToString() };
                dgv_DanhSachTinhThanh.Rows.Add(t);
            }           
        }

        private void bt_ThoatTinhThanh_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
